<script setup>
import { useRouter } from "vue-router";
const router = useRouter();
</script>

<template>
  <div class="class_404">
    <van-empty description="404" />
    <div class="btn">
      <van-button type="primary" @click="router.push('/')" plain size="small"
        >返回首页</van-button
      >
      <van-button type="primary" @click="router.go(-1)" plain size="small"
        >返回上一页</van-button
      >
    </div>
  </div>
</template>

<style scoped lang="scss">
.class_404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  .btn {
    display: flex;
    justify-content: space-around;
    width: 50%;
  }
}
</style>
